Certified Context Engineer Associate v1.0

Page:    1 / 4   
Exam contains 50 questions

A context engineer is reviewing an agent built on Databricks that assists warehouse operations staff with inventory queries. The agent is configured with a system prompt (120 tokens), a conversation history window (400 tokens), 10 tool definitions averaging 180 tokens each (1,800 tokens total), and a RAG pipeline that retrieves a document chunk of 1,600 tokens at runtime. The total context regularly exceeds the model’s 4,096-token limit, causing truncation of conversation history and degraded multi-turn coherence. Usage logs show that session variety is low, task patterns are repetitive, and on average, 3-4 tools are invoked per session.
Which change to the agent configuration will most effectively reduce token budget and improve model focus?

  • A. Reduce the RAG retrieval chunk size from 1,600 tokens to 800 tokens, halving the retrieval footprint and freeing space for additional tool definitions.
  • B. Reduce the conversation history window from 400 tokens to 100 tokens and redistribute the free space across the tool definitions and retrieval chunk equally.
  • C. Replace the 10 tool definitions with a static curated set of the 4 most frequently invoked tools, reducing tool token cost to approximately 720 tokens per turn.
  • D. Implement a dynamic tool-routing layer that inspects each user turn and injects only the tools relevant to the detected intent, removing unused definitions from the context window.


Answer : D

A context engineer is building a retail agent using Agent Bricks Custom Agents. The agent has two registered tools: a SQL query tool that queries a live inventory database, and a vector search tool that searches a static product catalog vector index for product descriptions, specifications, and categories. Both tools are correctly configured, functioning, and returning valid results when called.
At runtime, when users ask questions such as, “Is this item in stock?”, the agent consistently calls the product catalog tool and gives a plausible availability answer without checking the live inventory database. The product catalog tool is not intended to answer live stock availability questions.
Which context engineering issue explains this behavior?

  • A. The product catalog vector index was built from a periodic snapshot, so it may contain stale product metadata.
  • B. The tool descriptions and routing guidance are too ambiguous to distinguish live inventory availability questions from static product catalog search.
  • C. The inventory tool’s description does not explicitly mention “stock,” “in stock,” or “availability,” even though it correctly queries real-time inventory when called.
  • D. The agent prompt does not require source-of-truth checks before generating a final answer, so the agent treats any plausible retrieved context as sufficient.


Answer : B

A context engineer is preparing to deploy a per-tenant Databricks agent for a SaaS retail analytics platform. Each customer of the platform is provisioned with their own Unity Catalog catalog, retail_<customer>, and inside each tenant catalog, the data is organized by business domain rather than by origin. The sales schema holds the customer’s POS transaction and returns tables, which the customer’s source systems write to throughout the day, alongside daily_sales_by_store, hourly_revenue_by_category, and top_skus_weekly summary tables that a nightly Lakeflow Jobs pipeline produces by reading those POS tables. The inventory schema holds stock-level and inbound-shipment tables written continuously by ingestion, alongside demand_forecast_7d and reorder_suggestions tables produced by the SaaS’s ML pipelines. The customer schema holds customer master records and contact tables, all populated by ingestion. The SaaS deploys one agent per customer through Model Serving, and each agent has its own service principal. The governance requirements before any agent endpoint is registered are that the agent for a given customer must only be able to retrieve data from that customer’s catalog and never from another customer’s catalog, and that within its own customer’s catalog the agent must only be able to retrieve from tables populated directly by the customer’s ingestion pipelines, never from the nightly summaries, forecasts, or other tables produced by SaaS pipelines.
Which governance approach should the context engineer implement for each tenant’s agent before registration?

  • A. Provision a single agent service principal shared across all tenants because per-tenant service principals are operationally heavy at the SaaS’s expected scale. Grant the shared service principal USE CATALOG on every retail_<customer> catalog and table-level SELECT only on the ingestion-fed tables in each catalog. Configure the agent’s retrieval tool to inject the requesting customer’s catalog name into every query so the agent reads only the right tenant’s tables at request time.
  • B. For each tenant’s agent service principal, grant USE CATALOG on that tenant’s retail_<customer> catalog and USE SCHEMA together with SELECT on the sales, inventory, and customer schemas. Apply a Unity Catalog tag source=ingest to every ingestion-fed table across the tenant catalogs and configure each agent’s retrieval logic to issue queries only against tables carrying that tag.
  • C. For each tenant’s agent service principal, grant USE CATALOG only on that tenant’s retail_<customer> catalog and USE SCHEMA together with SELECT on the sales, inventory, and customer schemas, relying on the per-tenant catalog boundary to scope retrieval to the customer’s data.
  • D. For each tenant’s agent service principal, grant USE CATALOG only on that tenant’s retail_<customer> catalog and, within that catalog, grant USE SCHEMA on each domain schema together with table-level SELECT only on the tables populated by the customer’s ingestion pipelines. Leave the nightly summary, forecast, and other SaaS-produced tables in those schemas ungranted.


Answer : D

A context engineer is designing an MCP server for a Databricks agent that connects to a catalog of 30 tools. The server uses a progressive disclosure architecture to manage a strict token budget. At startup, the agent loads only tool names and one-sentence descriptions. After receiving a user request to query a specific Unity Catalog table, the agent evaluates the catalog and identifies one tool as the likely match, and needs to proceed to the next stage of the architecture.
What should the agent do at the inspect layer?

  • A. Call the selected tool using parameter values inferred from the short description, since the catalog layer has already confirmed the tool identity.
  • B. Fetch the full schemas and documentation for the single identified tool, then use that retrieved schema to construct a valid tool call.
  • C. Retrieve an enriched summary for the selected tool that includes usage examples and defers loading parameter types until the execution layer.
  • D. Load the full schemas for all 30 available tools so it can cross-validate the selected tool’s parameters against similar tools before constructing the call.


Answer : B

A context engineer is building a compound AI system for a hospital network using Agent Bricks Custom Agents. The system answers clinician questions about a specific patient’s medication history. Patient records are stored in a Delta table that is updated continuously as new prescriptions, refills, and discontinuations are recorded, and clinicians must see the most current state of a patient’s record at the moment they submit a query. HIPAA’s minimum necessary rule requires that the system retrieve only the requesting patient’s records rather than searching across the broader patient population. End-to-end latency per query must remain under two seconds.
Which retrieval strategy should the context engineer implement?

  • A. Use a Databricks AI Search index configured in delta-sync mode so the index automatically updates from the Delta table, and perform semantic retrieval at inference.
  • B. Use just-in-time agentic retrieval by equipping the agent with a tool that executes a parameterized Delta table query scoped to the specific patient at inference time.
  • C. Use a hybrid approach: precompute embeddings for all patient records nightly and supplement with just-in-time retrieval only for records modified during the day.
  • D. Use pre-inference embedding-based retrieval by indexing all patient records into a Databricks AI Search index at pipeline build time and querying it semantically at inference.


Answer : B

A context engineer is building a Databricks agent that autonomously manages a multi-day incident response workflow. The agent processes a continuous stream of structured log entries, tool call results, and short status updates. Recent messages tend to drive decisions, while earlier messages are frequently superseded by newer updates during the workflow. The engineer is evaluating whether to implement a hard-coded sliding-window trimming heuristic that drops messages older than a fixed turn count, or to invest in a semantic compaction approach that summarizes and condenses prior context before dropping it.
Which characteristic of this agent’s information relevance pattern justifies using the hard-coded sliding-window trimming heuristic rather than a semantic compaction approach?

  • A. The agent receives frequent short status updates that individually appear low-value, but collectively encode a progression of state changes that a fixed trim threshold would maintain.
  • B. The agent accumulates long-range dependencies across turns, in a way that semantic compaction would lose the granularity of faster than a fixed trim.
  • C. Message relevance declines in a consistent and predictable way over time, allowing a fixed-size window to retain the necessary context without additional processing.
  • D. Hard-coded trimming heuristics are typically used when managing context size constraints, independent of specific relevance patterns for one particular use case.


Answer : C

An AI engineer is auditing a Databricks compliance agent that has processed 65 conversation turns for a quarterly financial audit. The context window is at 92% capacity, and several open audit findings remain. The engineer wants to clear specific raw tool outputs from the message history to recover space, without compacting the conversation, and is reviewing four tool_result blocks. They also want to minimize the risk of losing information the agent still depends on.
The history contains:
- A ledger reconciliation output at turn 7 returning 8,800 tokens of raw transaction rows from a read-only general ledger. The agent computed aggregated taxable and non-taxable totals from these rows and passed those totals to the tax classification call at turn 10. The agent’s later replies and tool calls do not quote any of the underlying transaction rows.
- A tax classification output at turn 10 returning 5,200 tokens of per-line bucket breakdowns across 312 transaction lines. The agent extracted the bucket totals and passed them to the compliance flag call at turn 13. The agent’s later replies and tool calls do not quote any of the per-line bucket assignments.
- A compliance flag output at turn 13 returning 95 tokens with three flag codes and one-sentence explanations. The agent quotes specific flag codes and explanations from this output in turns 24, 38, and 61, building them into the audit findings it is currently drafting.
- A vendor master lookup output at turn 19 returning 3,400 tokens of supplier records and tax IDs from a read-only vendor master database. The agent quotes a vendor name and tax ID from this output in turns 41 and 57.
Which tool outputs should the engineer clear?

  • A. The ledger reconciliation (turn 7) and tax classification (turn 10) outputs, because the agent’s later reasoning relies on the compliance flag summary (turn 13) rather than on the upstream raw data.
  • B. No outputs from the chain (turns 7, 10, 13), because the agent may need to re-quote raw transaction rows or per-line bucket assignments in the open audit findings still being drafted.
  • C. The ledger reconciliation (turn 7), tax classification (turn 10), and vendor master lookup (turn 19) outputs, because they are the three largest blocks and yield the most context capacity at once.
  • D. Only the tax classification output (turn 10), because the ledger reconciliation is the root of the dependency chain and must be retained for re-derivation if downstream conclusions are challenged.


Answer : A

A context engineer is building a Databricks research agent that produces analyst reports in which every claim must cite a verifiable source: a reviewer has to be able to trace each citation back to its exact original source text. At each step, the agent calls a retrieval tool that returns several short source snippets, writes a reasoning trace explaining how those snippets support its conclusions, and appends both the snippets and the reasoning to a running context that later steps reuse. As the run grows, that accumulated context pushes per-step token cost above the team’s budget, so the context must be compacted to bring token spend down.
Which compaction strategy fits both the citation requirement and the token-reduction need?

  • A. Snippet summarization: replace each retrieved snippet with a short paraphrase of what it says to save tokens, while keeping every reasoning trace in full.
  • B. Conservative compaction: keep the retrieved snippets verbatim but compress the reasoning traces and drop redundant text, accepting a smaller token saving in order to preserve the source text citations depend on.
  • C. Recency eviction: drop the earliest steps’ snippets and reasoning as new steps arrive, keeping only the most recent context that fits the token budget.
  • D. Aggressive compaction: replace each step’s snippets and reasoning with a brief model-written summary before passing context to later steps, since summaries reclaim the most tokens.


Answer : B

A context engineer is reviewing an MLflow trace for a Databricks compliance agent mid-workflow on a quarterly regulatory review for a regional bank. The agent’s design pattern is to retrieve regulatory clauses, extract structured obligations with regional metadata and source citations, validate each obligation through the rules engine, and synthesize the audit memo from the structured intermediate plus the validation outcomes. The context window is approaching the compaction threshold, and compaction will fire before the workflow completes.
The trace contains three executed spans and one queued span:
- Span 1 (RETRIEVER): pulled 22 regulatory clause excerpts from the compliance vector index. Output: 22 documents (8,400 tokens) of raw clause text with metadata for source URI and section ID.
- Span 2 (LLM/CHAT_MODEL): produced a structured intermediate (410 tokens) containing three extracted compliance obligations, each annotated with a regional applicability tag describing how the bank’s state-level regulations modify the federal requirement and a source citation pointing back to the originating clause.
- Span 3 (TOOL): ran the three obligations through the rules engine and returned a structured pass/fail report (280 tokens) with one outcome entry per obligation. Each entry contains the obligation ID, the pass/fail value, and a brief explanation of the rule that determined the outcome.
- Span 4 (LLM/CHAT_MODEL, queued): will draft the compliance memo for the bank’s audit team.
Which content from the executed spans is safe to let the compactor summarize without affecting span 4’s execution?

  • A. The 22 raw clause excerpts from span 1, because their content has been transferred forward by span 2 into the structured intermediate (with regional applicability tags and source citations preserved) that the memo synthesis works from.
  • B. The structured intermediate output from span 2, because span 1’s raw regulatory clauses are the canonical source preserved verbatim for the memo’s direct source quotations and audit traceability, while span 2’s extracted obligations are intermediate analysis, the rules engine has already factored into the pass/fail report.
  • C. All three executed spans, because the default compaction summary captures the agent’s state and findings, and span 4 will draft the memo from the digest, which preserves the agent’s analysis at the level needed for synthesis.
  • D. The 22 raw clause excerpts from span 1 and the structured intermediate output from span 2, because everything that has been processed by a downstream operation is redundant in the active context; the pass/fail report from span 3 is the only output still doing work for the queued span.


Answer : A

A context engineer is debugging a long-running data pipeline orchestration agent that executes multi-step workflows using registered Databricks tools such as run_job, query_catalog, and validate_schema. After compaction occurs at turn 40, the agent begins re-invoking tools it already called successfully earlier in the session and ignoring results that downstream steps depend on. Inspection of the compacted context shows the summarization prompt was instructed to retain only the final state of each pipeline stage. The current compaction prompt reads: “Summarize the current pipeline state in a few sentences and include only what is necessary.”
Which revision to the compaction prompt addresses the coherence failure while keeping token cost low?

  • A. Replace “include only what is necessary” with: “Include the reasoning chain and internal thinking text produced before each tool invocation.”
  • B. Replace “include only what is necessary” with: “Include a compact record of each tool called, its key arguments, and its returned result.”
  • C. Append: “For each tool invocation, include the full input payload and every response field returned by the tool.”
  • D. Append: “Retain the user's original task description and all clarifying questions asked during the session.”


Answer : B

A context engineer is tuning a compaction prompt for a Databricks agent that summarizes customer support ticket histories before passing them to a downstream LLM. The trace being compacted spans 40 turns, and the compacted output must fit within the downstream LLM’s context window. During initial evaluation against a benchmark of escalated support cases, the engineer observes that the compaction output consistently omits several prior resolutions and key escalation events, even though the compacted output fits well within the downstream LLM’s context window.
Which tuning step should the engineer take next?

  • A. Add a token-count cap to the compaction prompt to shorten the summary and lower downstream inference cost and latency, then check afterward whether the key events were retained.
  • B. Add a recency rule that keeps the most recent turns in full and compresses the earlier turns, since the latest exchanges usually carry the most relevant context.
  • C. Broaden the compaction prompt’s retention rules to capture all events, resolutions, and escalation signals, accepting a longer summary for now and tightening verbosity in a later iteration.
  • D. Add retention rules and pruning rules in the same iteration so recall and precision are tuned together rather than over separate passes.


Answer : C

An AI engineer is building a multimodal agent for a media company’s archive team. The archive contains thousands of titles spanning two decades (full episodes, raw interviews, and unedited B-roll), ingested as monolithic files. Producers use the agent to answer visual content questions about archival footage, such as whether a specific asset contains a usable exterior shot of a landmark. When a producer asks this kind of question, the agent’s retrieval tool loads the full asset into context so the model can examine it, even though only a small portion of the asset is relevant. After a few such retrievals, the context window fills. The engineer needs to reduce context pressure through proactive design changes rather than relying on compaction.
Which proactive context management strategy should the engineer apply to address this problem?

  • A. Route each retrieved asset through a summarization step using a vision language model to produce a brief visual digest, passing only that digest into the agent’s context window.
  • B. Add explicit instructions to the agent’s system prompt directing it to retrieve only the smallest necessary portion of each asset, so the model proactively limits what it loads.
  • C. Configure the agent to invoke a text-only search of the catalog metadata before retrieving any footage, so it can answer from the catalog when possible without loading media.
  • D. Preprocess each archival asset into a scene-level metadata layer so the agent can identify the relevant segment from the metadata and retrieve only that portion for examination.


Answer : D

A context engineer is reviewing a Databricks agent that coordinates a multi-week pharmaceutical supply chain compliance workflow across dozens of distribution centers. The agent uses a flat task decomposition strategy, breaking the entire workflow into a single-level list of atomic tasks dispatched and tracked independently. The workflow contains clusters of tightly coupled sub-tasks, such as per-facility inspection records that must all complete before a regional compliance certificate can be issued, and the agent repeatedly fails to coordinate these cluster-level completions correctly. Logs show the agent loses track of intermediate group states, issues compliance certificates prematurely on incomplete facility data, and cannot recover gracefully when individual facility inspection tasks fail.
Which two changes should the context engineer make to resolve the observed failure? (Choose two.)

  • A. Switch to a parallel decomposition strategy that executes all facility inspection and certificate tasks simultaneously, relying on eventual consistency to merge partial results into the final compliance record.
  • B. Add a retry loop at the top-level agent that restarts the entire flat task list from the beginning whenever any single facility inspection task fails, ensuring no partial state persists across runs.
  • C. Replace the flat task decomposition with a hierarchical decomposition strategy that groups related facility inspection sub-tasks under a parent node, enabling group-level completion tracking before dependent tasks proceed.
  • D. Introduce explicit dependency gates at each cluster boundary so the compliance certificate task is dispatched only after all facility inspection tasks in the group have reached a confirmed completed state.
  • E. Replace the workflow with a fixed sequential chaining strategy that executes every facility inspection one at a time before issuing any certificate, eliminating all concurrency from the pipeline.


Answer : CD

A context engineer is building a Databricks agent that orchestrates a multi-step data quality remediation workflow across a large enterprise dataset. The agent iterates through validation rules, flags violations, applies corrections, and logs each remediation action. The workflow can span dozens of steps and may be interrupted by cluster preemption or network timeouts. Business stakeholders require that every correction applied to the dataset be traceable and reversible, and the agent must be able to resume mid-workflow without reapplying corrections already committed to prior records.
Which state management approach satisfies these requirements?

  • A. Persist each step’s output to a temporary in-memory Python dictionary shared across agent invocations within the same cluster session.
  • B. Write remediation actions to a plain text log file on DBFS, reading the file at the start of each step to reconstruct the prior state.
  • C. Use an in-context scratchpad to accumulate remediation actions as a running list appended to the agent’s prompt on each step.
  • D. Store intermediate state in a Delta table, leveraging transaction history for traceability and enabling the agent to checkpoint and resume from the last committed step.


Answer : D

A context engineer is debugging a Databricks agent responsible for a multi-month clinical trial data processing pipeline. The agent uses a fixed sequential chaining strategy, executing each processing stage in a predetermined order regardless of which stages have already completed successfully. When upstream data sources are delayed or partially available, the agent restarts the entire chain from the beginning, discarding all previously completed stage outputs. Logs show that stages with no dependency on the delayed source are being blocked unnecessarily, and total pipeline runtime has grown to an unacceptable length due to repeated full restarts on partial failures.
Which two changes should the context engineer make to resolve the observed failure pattern? (Choose two.)

  • A. Replace the fixed sequential chain with a dependency-graph-aware strategy that allows independent stages to execute without waiting for unrelated delayed stages.
  • B. Increase the agent’s retry limit and timeout thresholds so the sequential chain has more time to wait for delayed upstream data before failing.
  • C. Replace the agent’s task planner with a reactive event-driven model that triggers each stage only when a new data file lands in the source directory.
  • D. Switch to a parallel decomposition strategy so all stages execute simultaneously, eliminating the sequential bottleneck caused by delayed upstream sources.
  • E. Introduce checkpointing so that successfully completed stages are persisted and the agent resumes from the last valid checkpoint rather than restarting the full chain.


Answer : AE

Page:    1 / 4   
Exam contains 50 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary.com is owned by MBS Tech Limited: Room 1905 Nam Wo Hong Building, 148 Wing Lok Street, Sheung Wan, Hong Kong. Company registration number: 2310926
Certlibrary doesn't offer Real Microsoft Exam Questions. Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.
Terms & Conditions | Privacy Policy | Amazon Exams | Cisco Exams | CompTIA Exams | Databricks Exams | Fortinet Exams | Google Exams | Microsoft Exams | VMware Exams